# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年04月15日
"""
import zipfile


word = zipfile.ZipFile("./长恨歌/长恨歌3.docx")
xml = word.read("word/document.xml").decode('utf-8')
xml_list = xml.split('<w:t>')
text_lsit = []

for i in xml_list:
	if i.find('</w:t>')+1:
		text_lsit.append(i[:i.find('</w:t>')])
	else:
		pass

text = "".join(text_lsit)
print(text)
